<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:xi="http://www.w3.org/2001/XInclude"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
 <managed-bean>
  <managed-bean-name>especieBean</managed-bean-name>
  <managed-bean-class>controle.EspecieBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>substanciaBean</managed-bean-name>
  <managed-bean-class>controle.SubstanciaBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>laboratorioBean</managed-bean-name>
  <managed-bean-class>controle.LaboratorioBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>usuarioBean</managed-bean-name>
  <managed-bean-class>controle.UsuarioBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>documentoBean</managed-bean-name>
  <managed-bean-class>controle.DocumentoBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>notaFiscalBean</managed-bean-name>
  <managed-bean-class>controle.NotaFiscalBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>contratoBean</managed-bean-name>
  <managed-bean-class>controle.ContratoBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>perfilBean</managed-bean-name>
  <managed-bean-class>controle.PerfilBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>analiseBean</managed-bean-name>
  <managed-bean-class>controle.AnaliseBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>origemPagamentoBean</managed-bean-name>
  <managed-bean-class>controle.OrigemPagamentoBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>permissaoBean</managed-bean-name>
  <managed-bean-class>controle.PermissaoBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>relatorioBean</managed-bean-name>
  <managed-bean-class>controle.RelatorioBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <navigation-rule>
  <display-name>CadastroEspecie</display-name>
  <from-view-id>/Paginas/CadastroEspecie.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaEspecie</from-outcome>
   <to-view-id>/Paginas/ListaEspecie.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>ListaEspecie</display-name>
  <from-view-id>/Paginas/ListaEspecie.jsp</from-view-id>
  <navigation-case>
   <from-outcome>novaEspecie</from-outcome>
   <to-view-id>/Paginas/CadastroEspecie.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>alteraEspecie</from-outcome>
   <to-view-id>/Paginas/CadastroEspecie.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>CadastroSubstancia</display-name>
  <from-view-id>/Paginas/CadastroSubstancia.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaSubstancia</from-outcome>
   <to-view-id>/Paginas/ListaSubstancia.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>ListaSubstancia</display-name>
  <from-view-id>/Paginas/ListaSubstancia.jsp</from-view-id>
  <navigation-case>
   <from-outcome>alteraSubstancia</from-outcome>
   <to-view-id>/Paginas/CadastroSubstancia.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>novaSubstancia</from-outcome>
   <to-view-id>/Paginas/CadastroSubstancia.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>CadastroLaboratorio</display-name>
  <from-view-id>/Paginas/CadastroLaboratorio.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaLaboratorio</from-outcome>
   <to-view-id>/Paginas/ListaLaboratorio.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>ListaLaboratorio</display-name>
  <from-view-id>/Paginas/ListaLaboratorio.jsp</from-view-id>
  <navigation-case>
   <from-outcome>novoLaboratorio</from-outcome>
   <to-view-id>/Paginas/CadastroLaboratorio.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>alteraLaboratorio</from-outcome>
   <to-view-id>/Paginas/CadastroLaboratorio.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>ListaUsuario</display-name>
  <from-view-id>/Paginas/ListaUsuario.jsp</from-view-id>
  <navigation-case>
   <from-outcome>alteraUsuario</from-outcome>
   <to-view-id>/Paginas/CadastroUsuario.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>novoUsuario</from-outcome>
   <to-view-id>/Paginas/CadastroUsuario.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>CadastroUsuario</display-name>
  <from-view-id>/Paginas/CadastroUsuario.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaUsuario</from-outcome>
   <to-view-id>/Paginas/ListaUsuario.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>ListaDocumento</display-name>
  <from-view-id>/Paginas/ListaDocumento.jsp</from-view-id>
  <navigation-case>
   <from-outcome>alteraDocumento</from-outcome>
   <to-view-id>/Paginas/CadastroDocumento.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>novoDocumento</from-outcome>
   <to-view-id>/Paginas/CadastroDocumento.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>CadastroDocumento</display-name>
  <from-view-id>/Paginas/CadastroDocumento.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaDocumento</from-outcome>
   <to-view-id>/Paginas/ListaDocumento.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>ListaNotaFiscal</display-name>
  <from-view-id>/Paginas/ListaNotaFiscal.jsp</from-view-id>
  <navigation-case>
   <from-outcome>alteraNotaFiscal</from-outcome>
   <to-view-id>/Paginas/CadastroNotaFiscal.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>novaNotaFiscal</from-outcome>
   <to-view-id>/Paginas/CadastroNotaFiscal.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <display-name>CadastroNotaFiscal</display-name>
  <from-view-id>/Paginas/CadastroNotaFiscal.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaNotaFiscal</from-outcome>
   <to-view-id>/Paginas/ListaNotaFiscal.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/ListaPerfil.jsp</from-view-id>
  <navigation-case>
   <from-outcome>alteraPerfil</from-outcome>
   <to-view-id>/Paginas/CadastroPerfil.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>novaPerfil</from-outcome>
   <to-view-id>/Paginas/CadastroPerfil.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/CadastroPerfil.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaPerfil</from-outcome>
   <to-view-id>/Paginas/ListaPerfil.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/Principal.jsp</from-view-id>
  <navigation-case>
   <from-outcome>novoContrato</from-outcome>
   <to-view-id>/Paginas/CadastroContrato.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/ListaContrato.jsp</from-view-id>
  <navigation-case>
   <from-outcome>novoContrato</from-outcome>
   <to-view-id>/Paginas/CadastroContrato.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>alteraContrato</from-outcome>
   <to-view-id>/Paginas/CadastroContrato.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/CadastroContrato.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaContrato</from-outcome>
   <to-view-id>/Paginas/ListaContrato.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/ListaAnalise.jsp</from-view-id>
  <navigation-case>
   <from-outcome>novaAnalise</from-outcome>
   <to-view-id>/Paginas/CadastroAnalise.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>alteraAnalise</from-outcome>
   <to-view-id>/Paginas/CadastroAnalise.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/CadastroAnalise.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaAnalise</from-outcome>
   <to-view-id>/Paginas/ListaAnalise.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/ListaOrigemPagamento.jsp</from-view-id>
  <navigation-case>
   <from-outcome>novaOrigemPagamento</from-outcome>
   <to-view-id>/Paginas/CadastroOrigemPagamento.jsp</to-view-id>
   <redirect/>
  </navigation-case>
  <navigation-case>
   <from-outcome>alteraOrigemPagamento</from-outcome>
   <to-view-id>/Paginas/CadastroOrigemPagamento.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
 <navigation-rule>
  <from-view-id>/Paginas/CadastroOrigemPagamento.jsp</from-view-id>
  <navigation-case>
   <from-outcome>cancelaOrigemPagamento</from-outcome>
   <to-view-id>/Paginas/ListaOrigemPagamento.jsp</to-view-id>
   <redirect/>
  </navigation-case>
 </navigation-rule>
</faces-config>
